package org.overmind.ieat.server.exceptions.provider;

import org.overmind.ieat.server.entity.Provider;

/**
 * @author eugene.karanda
 */
public class ProviderSaveException extends RuntimeException {
    private Provider provider;

    public ProviderSaveException(Provider provider) {
        this.provider = provider;
    }

    public ProviderSaveException(Throwable cause, Provider provider) {
        super(cause);
        this.provider = provider;
    }

    public Provider getProvider() {
        return provider;
    }
}
